revXMLAppend
Type
command
Summary
Syntax
revXMLAppend <treeID>, <parentNode>, <newXML>
Description
Use the revXMLAppend command to add new XML data to an existing XML tree.
The revXMLAppend command is part of the XML library. To ensure that the command works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions pane of the Standalone Application Settings window, make sure the "XML" checkbox is checked.
Parameters
Name | Type | Description |
---|---|---|
treeID | The number returned by the revXMLCreateTree or revXMLCreateTreeFromFile function when you created the XML tree. | |
parentNode | The path to the node where the newXML will be inserted. Any elements in the newXML will become child nodes of the parentNode. If no parentNode is specified, the newXML is inserted at the end of the XML tree. | |
newXML | The XML text to be inserted. |
Examples
revXMLAppend 4,"/Publications/Fiction/SF",URL "file:SF Books.xml"
revXMLAppend thisTree,the currNode of me,the text of me
Related
command: revXMLAddDTD, revXMLPutIntoNode, revXMLSetAttribute, revXMLInsertNode, revXMLAddNode
function: revXMLNodeContents, result, revXMLText, revXMLCreateTreeFromFile, revXMLCreateTree, revXMLChildContents
glossary: Standalone Application Settings, standalone application, XML tree, XML, command, LiveCode custom library
library: XML library
Compatibility and Support
Introduced
LiveCode 2.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile